package com.ruoyi.activity.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 门店活动信息对象 che_activity
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Data
public class CheActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String title;

    /** 发布门店 */
    @Excel(name = "发布门店")
    private Long shopId;

    /** 发布内容 */
    @Excel(name = "发布内容")
    private String content;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long type;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核说明 */
    @Excel(name = "审核说明")
    private String explains;

    /** 活动状态 */
    @Excel(name = "活动状态")
    private Long state;

    /** 图片/视频 */
    @Excel(name = "图片/视频")
    private String photo;

    private String shopName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("shopId", getShopId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .append("auditTime", getAuditTime())
            .append("explains", getExplains())
            .append("state", getState())
            .append("photo", getPhoto())
            .toString();
    }
}
